using Microsoft.Xna.Framework;

namespace RpgXna.Model.Entities.MainCharacter
{
    public class InteractionEventWrapper
    {
        public event ItemInteractionEventHandler Interact;

        public void OnInteract(Vector2 pos, PickableObject obj)
        {
            ItemInteractionEventHandler handler = Interact;
            if (handler != null) handler(pos, obj);
        }
    }
}